-- GENERATED SPELL FOR [Coilskar Soothsayer] --


function spell0_22876(pUnit, Event) --@Holy Nova,Self--
pUnit:FullCastSpellOnTarget(40096,pUnit)
pUnit:RegisterEvent('Sorts_22876', 628, 1)
end

function spell1_22876(pUnit, Event) --@Restoration,Heal--
pUnit:FullCastSpellOnTarget(40097,pUnit)
pUnit:RegisterEvent('Sorts_22876', 16500, 1)
end

function Sorts_22876(pUnit, Event)
local choix_sorts_22876 = math.random(0, 1)
if choix_sorts_22876 == 0 then
pUnit:RegisterEvent('spell0_22876', 1, 1)
end
if choix_sorts_22876 == 1 then
pUnit:RegisterEvent('spell1_22876', 1, 1)
end
end

function mob22876_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22876', math.random(1500, 3000), 1)
end

function mob22876_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22876_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22876_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22876, 1, 'mob22876_Action')
RegisterUnitEvent(22876, 2, 'mob22876_Leave')
RegisterUnitEvent(22876, 3, 'mob22876_Kill')
RegisterUnitEvent(22876, 4, 'mob22876_Die')
